package 集合;

import java.util.HashMap;
import java.util.Map;


public class MapClass {
    public static void main(String[] args) {
        Map<String,String> map= new HashMap<>();
        map.put("us","hello");
        map.put("cn","你好");
//        Set<Map.Entry<String,String>> entries = map.entrySet();
        for (Map.Entry<String, String> s : map.entrySet()) {
            System.out.print("["+s.getKey()+","+s.getValue()+"]");
        }

    }

}

